package com.jj.service.impl;

import com.jj.dao.PageDao;
import com.jj.dao.impl.PageDaoImpl;
import com.jj.entity.Employee;
import com.jj.entity.Page;
import com.jj.service.PageService;

public class PageServiceImpl implements PageService {
    private PageDao pageDao = new PageDaoImpl();
    @Override
    public Page<Employee> findByPage(String empName, Page<Employee> page) {
        return pageDao.findByPage(empName,page);
    }

    @Override
    public int getTotal(String empName) {
        return pageDao.getTotal(empName);
    }
}
